import request from '@/utils/request'

export function listBrand(query) {
  return request({
    url: '/mall/brand/list',
    method: 'post',
    params: query
  })
}

export function createBrand(data) {
  return request({
    url: '/mall/brand/add',
    method: 'post',
    data
  })
}

export function readBrand(data) {
  return request({
    url: '/mall/brand/submit',
    method: 'get',
    data
  })
}

export function updateBrand(data) {
  return request({
    url: '/mall/brand/edit',
    method: 'post',
    data
  })
}

export function deleteBrand(data) {
  return request({
    url: '/mall/brand/remove',
    method: 'post',
    params: data
  })
}
